A Shadow Dynamic Finite State Machine for Branch Prediction: An Alternative for the 2-bit Saturating Counter
نویسندگان
چکیده
In order to meet high performance demands, modern processor architectures exploit varieties of dynamic branch prediction topologies ([4]-[6] provide an excellent introduction and research coverage) to increase instruction-level parallelism (ILP). Dynamic branch predictors use run-time branch execution history to predict branch direction. Most previous techniques use a branch pattern history table (known as PHTs, BHTs, or BPHTs) to record past branch behavior (e.g., global and/or local) and these tables are indexed using a function/subset of the branch address. Nearly all dynamic branch predictors explored in the last 10 years have been based on tables containing 2-bit saturating counters [7][8]. Extensive simulations of branch predictors reveal that the 2-bit saturating counter performs the best on average [9][10], and thus are used in modern commercial processors. In recent years, research has explored more advanced branch prediction techniques such as neural networks [11][12] and other forms of machine learning. Despite their impressive simulation accuracy, to the best of our knowledge no commercial efforts have publicly announced incorporating such branch predictors because these branch predictors are commonly known to exhibit high prediction latency and long training periods with increased area and energy per prediction [13]. In order to provide increased branch prediction accuracy with low area and power overheads, in this paper we propose a novel adaptive learning machinebased shadow dynamic finite state machine (SDFSM). The SDFSM learns/predicts an application’s unique branching pattern using the prediction values (taken/not taken) stored in each state. Upon branch execution, state transition is input independent and the value of the target state predicts the branch outcome. Each state has a corresponding shadow state, which contains the alternate branch prediction value. In the event of a mispredicted branch, the SDFSM performs self-modification by swapping the current state with the current state’s shadow state, which contains the correctly predicted branch outcome. This method of state swapping dynamically records unique branch patterns, thus specializing the branch predictor to the needs of an application. Extensive experimental results compare the SDFSM prediction accuracy to the commonly used bimodal [1][2] counter-based predictor and reveal that, for a subset of benchmarks, an SDFSM with six shadow states provides more accurate predictions than counterbase predictors with one-to-one prediction latency. The remainder of this paper is organized as follows. Section 2 describes the proposed SDFSM as an alternative replacement for 2-bit saturating counters and presents the SDFSM architecture. Section 3 and Section 4 present our simulation methodology setup and branch Figure 1: The proposed shadow dynamic finite state machine (SDFSM) using four states A Shadow Dynamic Finite State Machine for Branch Prediction: An alternative for the 2-bit Saturating Counter Saleh Abdel-Hafeez, Ann Gordon-Ross, Asem Albosul, Ahmad shatnawi and Shadi Harb Department of Computer Engineering, Jordan University of Science & Technology Irbid, Jordan 21110 [email protected] Department of Electrical & Computer Engineering University of Florida, Gainesville, FL 32611, USA [email protected] *Also with the NSF Center for High Performance Reconfigurable Computing (CHREC) at UF
منابع مشابه
Exploiting Bias in the Hysteresis Bit of 2-bit Saturating Counters in Branch Predictors
The states of the 2-bit counters used in many branch prediction schemes can be divided into “strong” and “weak” states. Instead of the typical saturating counter encoding of the states, the 2-bit counter can be encoded such that the least significant bit directly represents whether the current state is strong or weak. This extra bit provides hysteresis to prevent the counters from switching dir...
متن کاملA Novel Meta Predictor Design for Hybrid Branch Prediction
Recent systems have been paved the way for being high-performance due to the super-pipelining, dynamic scheduling and superscalar processor technologies. The performance of the system is greatly affected by the accuracy of the branch prediction because the overhead of each misprediction has grown due to greater number of instructions per cycle and the deepened pipeline. Hybrid branch prediction...
متن کاملA PPM-like, Tag-based Predictor
The predictor proposed is a tag-based, global-history predictor derived from PPM. It features five tables. Each table is indexed with a different history length. The prediction for a branch is given by the up-down saturating counter associated with the longest matching history. For this kind of predictor to work well, the update must be done carefully. We propose a new update method that improv...
متن کاملPerformance Evaluation of One and Two-Level Dynamic Branch Prediction Schemes over Comparable Hardware Costs
Branch prediction has become an area of interest due to its effects on the performance of pipelined and superscalar processors. Various methods have been proposed to speculate the path of an instruction stream after a branch. In this paper, the performance of prediction schemes are evaluated by both the accuracy of prediction and the amount of hardware the technique requires to reach that level...
متن کاملImpact of queuing theory and alternative process routings on machine busy time in a dynamic cellular manufacturing system
A new mathematical model based on the alternative process routings in presence of a queuing system in a dynamic cellular manufacturing system has been proposed in this paper.This model integrates two problems of cell formation and inter-cell layout and also an efficiency factor which is defined for minimizing the cell load variation through the maximizing the busy time for all machine types. In...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
- Informatica (Slovenia)
دوره 35 شماره
صفحات -
تاریخ انتشار 2011